When a line state changes, the LineStateChanged event occurs and passes an array of lines whose state has changed. To select which lines to watch or see which lines have changed, please use the new constants added to the Serial class for this purpose: CTS: ClearToSend DCD: DataCarrierDetect DSR: DataSetReady DTR: DataTerminalReady RTS: RequestToSend RI: RingIndicator Use the ClearToSend, DataCarrierDetect, etc.
Syntax |
|---|
|
Serial.LineChangeNotification ParamArray Lines |
|
Serial.LineChangeNotification Lines() |
Parameters |
|
|---|---|
|
ParamArray Lines |
|
|
Lines() |
|
Notes
properties to get the state of each line.